From c4046523c4cebf2eac160193a724a9c880298cc8 Mon Sep 17 00:00:00 2001 From: Joerg Riesmeier Date: Wed, 10 Dec 2025 22:34:17 +0100 Subject: [PATCH] Fixed issue with commit 7ad81d69b. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Applied-Upstream: 3de96da6cd66b1af7224561c568bc3de50cd1398 Last-Update: 2025-08-18 Reviewed-By: Étienne Mollier Fixed an issue with recently committed changes that fix a problem with invalid YBR_FULL images Gbp-Pq: Name 0014-CVE-2025-9732.patch --- dcmimage/include/dcmtk/dcmimage/diybrpxt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcmimage/include/dcmtk/dcmimage/diybrpxt.h b/dcmimage/include/dcmtk/dcmimage/diybrpxt.h index c5415c14..3ab5aeb0 100644 --- a/dcmimage/include/dcmtk/dcmimage/diybrpxt.h +++ b/dcmimage/include/dcmtk/dcmimage/diybrpxt.h @@ -92,7 +92,7 @@ class DiYBRPixelTemplate // attribute), but not more than the size of the intermediate buffer const unsigned long count = (this->InputCount < this->Count) ? this->InputCount : this->Count; // make sure that there is sufficient input data (for planar pixel data) - if (!this->PlanarConfiguration || (count >= planeSize * 3 /* number of planes */)) + if (!this->PlanarConfiguration || (count >= planeSize)) { if (rgb) /* convert to RGB model */ { -- 2.30.2